//
//  YPTopButton.m
//  WHISPER
//
//  Created by lanou3g on 15/12/19.
//  Copyright © 2015年 王艳苹. All rights reserved.
//

#import "YPTopButton.h"
#import "UIView+Extention.h"

@implementation YPTopButton
- (instancetype)init
{
    self = [super init];
    if (self) {
        self.frame = CGRectMake(0,0,30,30);
        self.titleLabel.font = [UIFont systemFontOfSize:14];
        [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    }
    return self;
}
- (CGRect)imageRectForContentRect:(CGRect)contentRect{
    return CGRectMake(5, 0, self.width - 10, self.hight);
}

- (CGRect)titleRectForContentRect:(CGRect)contentRect{
    return CGRectMake(self.width -10,-3,30,10);
}


@end
